<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../src/ppslick.js"></script>
<!--    <script src="../release/ppslick-1.0.0.min.js"></script>-->
</head>
<script>
    window.onload = function () {
        let searcher = PPSlick.createSearcher();
        searcher.onInput(function (text) {
            /*可以根据输入内容生成下拉提示*/
            console.log(`输入内容：${text}`);
            searcher.setSearchCandidates(["提示1","提示2"]);
        })
        searcher.onSubmit(function (text) {
            console.log(`搜索内容：${text}`);
        })
    }
</script>
<body>

</body>
</html>